sf: Move spi_flash_scan code to sf_ops
authorJagan Teki <[email protected]>
Fri, 11 Dec 2015 16:06:34 +0000 (21:36 +0530)
committerJagan Teki <[email protected]>
Fri, 11 Dec 2015 16:42:23 +0000 (22:12 +0530)
commit3847c0c18051a7a98982a3ae8ff1446b2b09a9ef
tree5e0d846f73772ec49f243b06677338dcb1affae7
parent3a1adb621b985ebaf2c72ff179190b305577e1de
sf: Move spi_flash_scan code to sf_ops

Intension is that sf_ops should deals all spi_flash
related stuff and sf_probe (which should renamed future)
should be an interface layer for spi_flash versus spi drivers.

sf_ops => spi_flash interface
sf_probe => interface layer vs spi_flash(sf_probe) to spi drivers

Tested-by: Jagan Teki <[email protected]>
Tested-by: Bin Meng <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Signed-off-by: Jagan Teki <[email protected]>
drivers/mtd/spi/sf_internal.h
drivers/mtd/spi/sf_ops.c
drivers/mtd/spi/sf_probe.c